package com.boot.mgt.service.impl

import com.boot.core.result.ResultTo
import com.boot.mgt.dao.mysql.TaDistrictMapper
import com.boot.mgt.service.TaDistrictService
import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImpl
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

@AutoJsonRpcServiceImpl
@Service
class TaDistrictServiceImpl : TaDistrictService {

    @Autowired
    protected lateinit var districtMapper: TaDistrictMapper

    override fun selectAll(): ResultTo {
        return ResultTo().setData("district_list", districtMapper.selectAll())
    }
}